package com.nidu.demo.oauth2.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.oauth2.dto.OAuth2RefreshTokenListQry;
import com.nidu.demo.oauth2.dto.OAuth2RefreshTokenPageQry;
import com.nidu.demo.oauth2.dto.OAuth2RefreshTokenQry;
import com.nidu.demo.oauth2.model.OAuth2RefreshTokenCriteria;
import org.mapstruct.Mapper;

/**
 * OAuth2刷新令牌查询条件转换器
 *
 * @author nidu
 */
@Mapper(config = MapStructConfig.class)
public interface OAuth2RefreshTokenCriteriaConvertor {

    /**
     * 单个查询条件转换
     */
    OAuth2RefreshTokenCriteria toDataObject(OAuth2RefreshTokenQry qry);

    /**
     * 列表查询条件转换
     */
    OAuth2RefreshTokenCriteria toDataObject(OAuth2RefreshTokenListQry listQry);

    /**
     * 分页查询条件转换
     */
    OAuth2RefreshTokenCriteria toDataObject(OAuth2RefreshTokenPageQry pageQry);
}
